package com.tiancheng.trade.settlement.model.settlement;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tiancheng.trade.settlement.enums.CheckSummaryDataStatusEnum;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 交易资金对账汇总表
 *
 * @TableName z_settle_summary
 */
@TableName("z_settle_summary")
@Data
@NoArgsConstructor
public class SettleSummary implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对账编号
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private String checkCode;

    /**
     * 实际清算日期
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private LocalDate actualClearDate;

    /**
     * 中台商户编码
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private String merchantCode;

    /**
     * 商户名称（中台）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private String merchantName;

    /**
     * 交易渠道
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private String payChannel;

    /**
     * 交易渠道名称
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private String payChannelName;

    /**
     * 渠道交易金额总和（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long channelFlowTotalAmount;

    /**
     * 渠道退款金额总和（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long channelRefundTotalAmount;

    /**
     * 渠道清出金额总和（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long channelClearTotalAmount;

    /**
     * 中台交易金额总和（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long mdFlowTotalAmount;

    /**
     * 中台退款金额总和（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long mdRefundTotalAmount;

    /**
     * 中台清出金额总和（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long mdClearTotalAmount;

    /**
     * 交易差异金额（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long differentAmountFlow;

    /**
     * 退款差异金额（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long differentAmountRefund;

    /**
     * 清出差异金额（分）
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Long differentAmountClear;

    /**
     * 对账结果：0=异常；1=正常；
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private Integer checkResult;

    /**
     * 此数据状态：0=无效；1=有效；2=清分结果未出
     *
     * @mbg.generated 2021-03-26 14:29:49
     * @see CheckSummaryDataStatusEnum
     */
    private Integer dataStatus;

    /**
     * 创建时间
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private LocalDateTime created;

    /**
     * 更新时间
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private LocalDateTime updated;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table z_settle_summary
     *
     * @mbg.generated 2021-03-26 14:29:49
     */
    private static final long serialVersionUID = 1L;

    /**
     * 平台抽佣金额（分）
     *
     * @date 2021-06-23
     */
    private Long distAmount;
}